package com.hm.pan.util;

public class Generator {

	//生成分享提取码
	public static String extractCode() {
		final char[] base = {'2', '3', '4', '5', '6', '7', '8', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J',
				'L', 'M', 'N', 'P', 'Q', 'T', 'U', 'V', 'W', 'X', 'Y'};
		
		StringBuilder extractCode = new StringBuilder();
		for(int i = 0; i < 6; i++) {
			int rIndex = (int) (Math.random() * base.length);
			extractCode.append(base[rIndex]);
		}
		String code = extractCode.toString();
		return code;
	}
	
}
